package com.lh.lepay.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lh.lepay.dao.SysRoleDao;
import com.lh.lepay.dao.SysUserDao;
import com.lh.lepay.entity.SysRole;
import com.lh.lepay.service.SysRoleService;
import com.lh.lepay.utils.HttpStatus;
import com.lh.lepay.utils.ResponseData;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class SysRoleServiceImpl extends ServiceImpl<SysRoleDao, SysRole> implements SysRoleService {
    @Resource
    private SysRoleDao sysRoleDao;

    @Override
    public ResponseData getRoleStatement() {
        List<SysRole> roleList = sysRoleDao.selectListStatement();
        log.info("权限名称：{}", roleList);
        return new ResponseData(HttpStatus.SUCCESS,roleList);
    }
}
